import random
start = int(input("开始值"))
end = int(input("结束值"))
i = random.randint(start,end)
test = int(input("请输入猜测值："))
if test == i:
    print('right')
elif test < i:
    print('too small')
    print("游戏结束")
    print(i)
elif test > i:
    print("too large")
    print("游戏结束")
    print(i)
